﻿using FSM.Model;
using System;
using System.Collections.Generic;
using System.Text;

namespace FSM.IDal
{
    public interface ISysSettingDal
    {
        #region 查询
        /// <summary>
        /// 获得用户对指定菜单拥有的操作权限按钮
        /// </summary>
        /// <param name="user_no">用户编号</param>
        /// <param name="menu_no">菜单编号</param>
        /// <returns></returns>
        List<sys_action> ListPowerAction(string user_no, string menu_no);
        #endregion

        #region 判断
        /// <summary>
        /// 是否拥有指定菜单的操作权限
        /// </summary>
        /// <param name="user_no">用户编号</param>
        /// <param name="menu_no">菜单编号</param>
        /// <param name="action_no">动作编号</param>
        /// <returns></returns>
        bool HasOperationPower(string user_no, string menu_no, string action_no);

        /// <summary>
        /// 是否拥有指定菜单的查看权限
        /// </summary>
        /// <param name="user_no">用户编号</param>
        /// <param name="menu_no">菜单编号</param>
        /// <returns></returns>
        bool HasViewMenuPower(string user_no, string menu_no);
        #endregion
    }
}
